﻿@if(Request.IsAuthenticated) {
    <text>Welcome <strong>@User.Identity.Name</strong>!
    [ @Html.ActionLink("Log Off", "LogOff", "Account") ]</text>
}
else {
    @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
}



@if(User.IsInRole("Player"))
{
    <br />
    @Html.ActionLink("[Mój profil]", "Index", "MyPlayer")
    if (User.IsInRole("Chef"))
    {
        @: | 
        @Html.ActionLink("[Moja drużyna]", "Index", "MyTeam") 
    }
    
}

@if (User.IsInRole("Admin"))
{
    <br />
    @Html.ActionLink("[Panel administratora]", "Index", "Admin")
}